/*
 * myFirstProgram.c
 *
 * This a very basic program that either turns on or off an led.
 * By changing which line you comment out, you can change the behavior of the program
 *
 * Compile and load each configuration to get familiar with the bootloader GUI and Atmel Studio
 * 
 * 
 * Created: 10/5/2013 6:31:28 PM
 *  Author: Tim
 */ 




// This and the above group are the two examples of C comments. putting // in front of a line of text creates a single line comment
// We can create multi line comments by starting with /* and ending with */



/*

Here 
is 
an 
example 
of 
a 
multi 
line 
comment.

*/




#include "../src/Epiphany.h" //This is an include statement.
/*
In C programming we use such commands to link code from multiple files
In general .h, or "header" files, contain dependencies called "prototypes"
Prototypes more or less tell the compiler that a function exists.

include statements have 2 types.  There are includes that use "" around 
the file name, and those with <> around the file name.  include calls that 
use "" refer to local files. Include statements with <>'s are reserved for 
library files.

***Some Other General Information***

lets examine the text here between the ""s	"../src/Epiphany.h"

The	text describes the location of Epiphany.h in reference to the location 
of this file myFirstProgram.c .

/  is a directory separator

.. means the search starts by escaping the current folder (workshop1)

src/Epiphany.h instructs that the file Epiphany.h is found in the src folder  

Last Epiphany.h gets its name from another Out of the Box product.  The DAQ
source code was simply derived from the Epiphany project.  This file simply 
includes all of the source code contained in the src folder.
*/


//This function runs at the start of the program, and then never again.
//Put initializations here
void setup()
{	
	//initialize the led pin for output
	dbledInit();
}


//This function will run continuously in a loop.  Hence the name of the function.
void loop()
{
	//this line of code will turn on the debug led
	dbledOn();
	
	//this line of code will turn off the debug led
//	dbledOff();
}